﻿using Microsoft.AspNetCore.Http;

namespace Magic.System;
/// <summary>
/// 文件服务接口
/// </summary>
public interface IFileService
{
    /// <summary>
    /// 文件上传
    /// </summary>
    /// <param name="file"></param>
    /// <param name="uuid"></param>
    /// <param name="path"></param>
    /// <returns></returns>
    Task<FileOutput> UploadFile([Required] IFormFile file, [Required] string uuid,string path);
    /// <summary>
    /// 上传头像
    /// </summary>
    /// <param name="file"></param>
    /// <param name="uuid"></param>
    /// <returns></returns>
    Task<FileOutput> UploadAvatar([Required] IFormFile file, [Required] string uuid);
}
